package converter;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.junit.Test;

public class ListConverterImplTest {

    @Test
    public void testConvert() {
        List<Bird> birds = new ArrayList<Bird>();

        for (int i = 1; i <= 3; i++) {
            birds.add(new Bird());
        }
        
        List<Flyable> flyables = Collections.emptyList();
        
        ListConverter<Flyable, Bird> converter = new ListConverterImpl<Flyable, Bird>();
        
        flyables = converter.convert( birds );
        
        assertEquals( flyables.size(), birds.size());
        
    }

}
